placesview: Avoid use-after-free
authorMatthias Clasen <mclasen@redhat.com>
Thu, 11 Feb 2021 14:14:34 +0000 (09:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 11 Feb 2021 14:14:34 +0000 (09:14 -0500)
commit95d48ac2e81df1f382669e4795cc3a9de151a252
tree110cba0180a29ae2ca94e441d8aeb08c043b9c8a
parent0cc43e10a51bbd6be2c97a257af0d57fe2d37e0d
placesview: Avoid use-after-free

The places view has questionable code for handling
'destroy', which seems to trigger use-after-free in
some cases. Clean this up a bit by acknowledging the
cancellation fully, rather than relying on the
destroyed flag.
gtk/gtkplacesview.c